package com.luyu.customvalid;

import cn.hutool.core.util.BooleanUtil;
import com.luyu.group.HumanGroup;
import com.luyu.group.SequenceGroupOne;
import com.luyu.group.SequenceGroupTwo;
import com.luyu.req.Human;
import com.luyu.req.UserGroupSequenceProviderReq;

import java.util.List;

/**
 * @Author lyh
 */
public class HumanGroupSequenceProvider extends AbstractGroupSequenceProvider<Human>{

    @Override
    protected void handle(Human obj, List<Class<?>> groupList) {
        if (BooleanUtil.isTrue(obj.getHumanFlag())){
            groupList.add(HumanGroup.class);
        }
    }
}
